package cn.com.miao.lynx.rpc.grpc.starter.annotation;

import cn.com.miao.lynx.rpc.grpc.starter.constant.SerializeType;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * GrpcService
 * GRPC服务注解
 * @title: GrpcService
 * @description:
 * @author: dengmiao
 * @create: 2019-12-25 15:37
 **/
@Documented
@Inherited
@Retention(RUNTIME)
public @interface GrpcService {

    /**
     * 远程服务名
     */
    String server() default "";

    /**
     * 序列化工具实现类
     */
    SerializeType[] serializeUsing() default {};
}
